/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package com.pancho;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class QuestFormCriteria extends AbstractORMCriteria {
	public final IntegerExpression idQuestForm;
	
	public QuestFormCriteria(Criteria criteria) {
		super(criteria);
		idQuestForm = new IntegerExpression("idQuestForm", this);
	}
	
	public QuestFormCriteria(PersistentSession session) {
		this(session.createCriteria(QuestForm.class));
	}
	
	public QuestFormCriteria() throws PersistentException {
		this(com.pancho.Taller1PDSPersistentManager.instance().getSession());
	}
	
	public BabyMonitorCriteria createBabyMonitorCodSystemCriteria() {
		return new BabyMonitorCriteria(createCriteria("babyMonitorCodSystem"));
	}
	
	public QuestionCriteria createQuestionidQuestCriteria() {
		return new QuestionCriteria(createCriteria("questionidQuest"));
	}
	
	public QuestForm uniqueQuestForm() {
		return (QuestForm) super.uniqueResult();
	}
	
	public QuestForm[] listQuestForm() {
		java.util.List list = super.list();
		return (QuestForm[]) list.toArray(new QuestForm[list.size()]);
	}
}

